from selenium.webdriver.common.by import By
class LoginPageLocators():

    # 登录标签
    login_click = (By.XPATH, '//span[text()="立即登录"]')
    username_loc = (By.XPATH, '//input[@placeholder="用户名"]')
    password_loc = (By.XPATH, '//input[@placeholder="密码"]')
    captcha = (By.XPATH, '//input[@placeholder="验证码"]')
    captcha_img = (By.XPATH, '//div[contains(@class, "login-captcha")]/img')
    # 登录按钮
    loginsbt = (By.XPATH, '//span[text()="登录"]')
    # 我的工作台
    workbench_loc = (By.LINK_TEXT, '我的工作台')
    # 取消修改密码按钮
    cancel_password_change = (By.XPATH, '//div[@aria-label="修改密码"]/div[1]/button/i')

    # 全部产品标签
    all_product = (By.XPATH, '//div[text()="全部产品"]')

    # 用户中心应用
    application = (By.XPATH, '//div[text()="用户中心"]')

    # 用户中心标题
    title = (By.XPATH, '//div[@title="用户中心"]')

    # 机构管理菜单
    manage_organizate = (By.XPATH, '//div[@class="site-sidebar__inner"]/ul/li[2]')

    # 用户权限管理
    user_right_manage = (By.XPATH, '//span[text()=" 用户权限管理"]')

    # 用户权限管理标签
    text = (By.CSS_SELECTOR, 'span[role="link"]')

    # 用户管理
    user_manage = (By.XPATH, '//span[text()=" 用户管理"]')

    # 角色管理
    role_manage = (By.XPATH, '//span[text()=" 角色管理"]')

    # 用户行为日志
    user_behavior_logs = (By.XPATH, '//span[text()=" 用户行为日志"]')


